﻿using MaiPlanServer.Model;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace MaiPlanServer.IServices.IMasterDataServices
{
    public interface ICodingRulesServices
    {
        public Task<IEnumerable<SYS_AUTO_CODE_RULE>> GetJsonAsync(int PageIndex, int PageSize, string ruleCode, string ruleName, string State);
        public Task<int> GetCountAsync(string ruleName);

        public Task<bool> AddAsync(SYS_AUTO_CODE_RULE model);

        public Task<bool> UpdateAsync(SYS_AUTO_CODE_RULE model);

        public Task<bool> DellAsync(string ruleId);
        public Task<bool> DellAllAsync(string [] ruleId);

    }
}
